home *** CD-ROM | disk | FTP | other *** search
- on PlayRecord
- global TrayNumber, Turntable, selection, Needle, recordFlag, record, OriginalNeedlePosition, needlePosition, OriginalRecordTrayHeight, OriginalTurntableHeight, buttonClicked, m, screen, DriveLtr
- set recordFlag to 1
- BubbleAnimation()
- set OriginalTrayPosition to the locV of sprite TrayNumber
- puppetSound(2, 150)
- if screen = 3 then
- repeat with TrayPosition = 50 to 72
- set the memberNum of sprite TrayNumber to TrayPosition
- updateStage()
- BubbleAnimation()
- if screen = 3 then
- hExit()
- next repeat
- end if
- exit repeat
- end repeat
- end if
- if screen = 3 then
- set OriginalTurntableHeight to the locV of sprite Turntable
- repeat while the locV of sprite Turntable > (the locV of sprite TrayNumber + 20)
- set the locV of sprite Turntable to the locV of sprite Turntable - 20
- updateStage()
- puppetSound(2, 151)
- BubbleAnimation()
- if screen = 3 then
- hExit()
- next repeat
- end if
- exit repeat
- end repeat
- set the locV of sprite Turntable to the locV of sprite TrayNumber - 2
- updateStage()
- end if
- if screen = 3 then
- set the locV of sprite record to the locV of sprite TrayNumber - 2
- set the visible of sprite record to 1
- updateStage()
- end if
- if screen = 3 then
- set OriginalRecordTrayHeight to the locV of sprite TrayNumber - 2
- repeat while the locV of sprite Turntable > (the locV of sprite Needle + 40)
- set the locV of sprite Turntable to the locV of sprite Turntable - 20
- set the locV of sprite record to the locV of sprite Turntable
- updateStage()
- puppetSound(2, 151)
- BubbleAnimation()
- if screen = 3 then
- hExit()
- next repeat
- end if
- exit repeat
- end repeat
- set the locV of sprite Turntable to the locV of sprite Needle + 20
- set the locV of sprite record to the locV of sprite Needle + 20
- updateStage()
- end if
- if screen = 3 then
- set the memberNum of sprite Turntable to the number of member "turntablerot1"
- set OriginalNeedlePosition to the locV of sprite Needle
- set the memberNum of sprite Turntable to the number of member "turntablerot2"
- end if
- if screen = 3 then
- repeat with needlePosition = OriginalNeedlePosition to the locV of sprite record - 4
- set the locV of sprite Needle to needlePosition
- updateStage()
- BubbleAnimation()
- rotate()
- if screen = 3 then
- hExit()
- next repeat
- end if
- exit repeat
- end repeat
- end if
- if screen = 3 then
- puppetSound(2, 145)
- sound playFile 1, DriveLtr & "Music" & m & selection
- rotate()
- end if
- end
-
- on rotate
- global Turntable, rotation
- BubbleAnimation()
- set the memberNum of sprite Turntable to rotation
- updateStage()
- if rotation = the number of member "TurnTableRot2" then
- set rotation to the number of member "TurnTableRot1"
- else
- set rotation to rotation + 1
- end if
- if rollOver(28) and the mouseDown then
- puppetSound(2, 149)
- sound stop 1
- end if
- end
-